export default {
  namespaced: true,
  state: {
    id: '',
    username: '',
    headimgurl: ''
  },
  mutations: {
    updateId (state: any, id: number) {
      state.id = id
    },
    updateUserame (state: any, username: string) {
      state.username = username
    },
    updateHeadimgurl (state: any, headimgurl: string) {
      state.headimgurl = headimgurl
    }
  }
}